/*
    Project:        Home Power Control
    File:           HPCLogDevice.h
    Author:         christian@karunamusic.at
    Date:           12.2014
    Description:    Baseclass for sbscribers of logmessages.
 */

#include <boost/signals2.hpp>
#include "HPCLogDevice.h"

HPCLogDevice::HPCLogDevice( TLogLevel lv ) : m_LogLevel(lv)
{
    m_Event = HPCLogger::getInstance().Register( boost::bind(&HPCLogDevice::OnLog, this, _1) );
}

HPCLogDevice::~HPCLogDevice()
{
    HPCLogger::getInstance().Unregister( m_Event );
}
